// 
import {request} from './request'

// 根据memberID查询数字人名片信息
export const digitalPersonInfo = (data) => request('/member/share/h5/datahuman/digitalPersonInfo', {
	method: 'post',
	data
})
export const getIndustryList = (data) => request('/sys/visitor/h5/industry', {data})
export const getSettingDetail = (data) => request('/sys/manage/setting/detail', {data})
export const getStyleList = () => request('/member/share/h5/datahuman/style')
export const detailStyleList = (data) => request('/member/card/detailStyleList', {data})
// 个人名片
export const cardMine = () => request('/member/card/mine')

export const addUpdateDigital = (data) => request('/member/h5/datahuman/addUpdateDigital', {
	method: 'post',
	data
})
// 上传头像
export const uploadUserImg = (data) => request('/oss/file-anon/upload', {
	method: 'post',
	data
})
// 数字人查询当前用户信息
export const getCurrentInfo = (data) => request('/member/h5/datahuman/getCurrentInfo', {
	// method: 'post',
	data
})
// 获取名片视频制作进度
export const getProgress = (data) => request('/member/h5/datahuman/getProgress', {
	method: 'get',
	data: data
})
// 所有主题样式
export const getCardStyle = (data) => request('/member/card/style/all',{
	method: 'get',
	data
})
// 名片详情
export const getCard = (data) => request('/member/card/detail',{
	method: 'get',
	header: { plat: 4 },
	loadingText: '加载中',
	data
})
// 名片详情 不要Token
export const getVisitorCard = (data) => request('/member/visitor/detail',{
	method: 'get',
	data
})
// 商务名片 - 是否展示 不要Token
export const getVisitorIsRepresent = (data) => request('/sys/visitor/representative/'+data.cardId)
// 商务名片 - 详情 不要Token
export const getVisitorCardRepresent = (data) => request('/sys/visitor/represent/details',{
	method: 'get',
	data
})

// 商务名片 - 详情
export const getCardRepresent = (data) => request('/sys/card/represent/details',{
	method: 'get',
	data
})
// 编辑名片信息详情
export const getCardDetail = (data) => request('/member/card/getDetail',{
	method: 'get',
	data
})
// 名片详情其他信息更新修改
export const putCardUpdate = (data) => request('/member/card',{
	method: 'put',
	data
})
// 修改主题样式
export const putCardStyleUpdate = (data) => request('/member/card/style/use',{
	method: 'put',
	data
})
// 添加个性标签
export const cardPortrayAdd = (data) => request('/member/portray/custom/add',{
	method: 'post',
    header: { 'Content-Type': 'application/x-www-form-urlencoded' },
	data
})
// 删除个性标签
export const cardPortrayDel = (data) => request('/member/portray/delete',{
	method: 'delete',
    header: { 'Content-Type': 'application/x-www-form-urlencoded' },
	data
})
// 语音介绍 - 详情
export const getCardVoice = () => request('/member/card/get/voice')
// 语音介绍 - 设置
export const cardVoiceUpdate = (data) => request('/member/card/update/voice',{
	method: 'put',
	data
})
// 语音介绍 - 删除
export const cardVoiceDel = (data) => request('/member/card/delete/voice',{
	method: 'delete',
    header: { 'Content-Type': 'application/x-www-form-urlencoded' },
	data
})

// 语音验证
export const cardVoiceExamination = (data) => request('/aip/voice/examination',{
	method: 'get',
	data
})
// 商务名片 - 是否展示
export const isCardRepresentative = (data) => request('/sys/card/representative/'+data.cardId)

// 分享 - 分页查询用户公开动态
export const dynamicList = (data) => request('/circle/share/page/dynamicList',{
	method: 'get',
	data
})
// 点赞/取消点赞
export const portrayLike = (data) => request('/member/portray/like',{
	method: 'put',
	data
})


// 企业名片 - 预览/详情  不需要token
export const companyCardPreview = (data) => request('/sys/company/card/preview',{
	method: 'get',
	header: { plat: 4 },
	data
})
// 企业-小程序二维码
export const companyUnlimitedQRCode = (data) => request('/member/share/member/unlimitedQRCode/company',{
	method: 'get',
	header: { plat: 4 },
	data
})

// 企业模块 - 详情(预览)   不需要token
export const companyCardWebsite = (data) => request('/sys/company/card/website/detail',{
	method: 'get',
	header: { plat: 4 },
	data
})
// 企业动态列表  不需要token
export const companyDynamicList = (data) => request('/sys/company/dynamic/list',{
	method: 'get',
    header: { plat: 4 },
	data
})
// 企业动态详情  不需要token
export const companyDynamicDetail = (data) => request('/sys/company/dynamic/detail/'+data.id,{
	header: { plat: 4 },
})
// 企业动态评论  不需要token
export const companyDynamicComments = (data) => request('/sys/company/dynamic/comments ',{
	method: 'post',
	header: { plat: 4 },
	data
})

// 企业产品列表  
export const companyProductList = (data) => request('/sys/company/product/list/'+data.id,{
	header: { plat: 4 },
})
// 预览名片-企业产品（已审核通过）   不需要token
export const companyProduct = (data) => request('/sys/company/product/'+data.id,{
	header: { plat: 4 },
})


// 企业产品详情  不需要token
export const companyProductDetail = (data) => request('/sys/company/user/product/detail',{header: { plat: 4 },data})

// 我的分组 名片夹
export const cardGroup = (data) => request('/member/group/mine')

// 名片首页 不需要token
export const cardHome = (data) => request('/member/card/home',{
    header: { plat: 4 },
})

// 动态列表 不需要token
export const cardHomeDynamic = (data) => request('/circle/circle-dynamic/list',{header: { plat: 4 },data})
// 首页企业动态列表  不需要token
export const cardHomeDynamicCompany = (data) => request('/sys/company/dynamic/homePage/list',{header: { plat: 4 },data})
// 进入app获取所有对应配置信息  不需要token
export const confAll = (data) => {
	// #ifdef H5
	data.showType = 1
	// #endif
	// #ifdef MP
	data.showType = 2
	// #endif
	return request('/sys/share/confAll',{header: { plat: 4 }, data })
}
export const confAllColor = (data) => {
	// #ifdef H5
	data.showType = 1
	// #endif
	// #ifdef MP
	data.showType = 2
	// #endif
	return request('/sys/share/bks/conf',{header: { plat: 4 }, data })
}

// export const confAll = (data) => request('/sys/share/confAll',{data})

// 获取地区天气情况  不需要token
export const cardHomeWeather = (data) => request('/member/card/home/weather',{header: { plat: 4 },data})


// 话题详情
export const topicDetail = (data) => request('/circle/topic/'+data.topicId,{header: { plat: 4 }})

// 动态-点赞
export const dynamicLike = (data) => request('/circle/circle-dynamic/like/v2',{method: 'post',data})
// 动态-取消点赞
export const dynamicUnlike = (data) => request('/circle/circle-dynamic/unlike/v2',{method: 'post',data})

// 取消关注企业 
export const followCompanyRemove = (data) => request('/member/follow/remove/'+data.companyId,{method: 'delete'})
// 关注企业 
export const followCompany = (data) => request('/member/follow/add/'+data.companyId,{method: 'post'})
// 请赐名片 
export const bestowCompany = (data) => request('/sys/bestow',{method: 'post',data})
// 邀请 - 二维码 - 加入校验 
export const joinCompanyCheck = (data) => request('/sys/company/invite/qrCode/joinCheck',{data})
// 邀请 - 二维码 - 加入校验 
export const joinCompany = (data) => request('/sys/company/invite/qrCode/joinCompany',{method: 'post', data})
// 名片夹 - 搜索
export const cardGroupSearch = (data) => request('/member/group/holder/search',{method: 'get', data})
// 分组 - 列表 
export const cardGroupList = (data) => request('/member/group',{method: 'get', data})
// 小程序二维码
export const unlimitedQRCode = (data) => request('/member/share/member/unlimitedQRCode',{method: 'get', data})






